package com.flyco.modules.report.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.SqlParser;
import org.apache.ibatis.annotations.Param;
import com.flyco.modules.report.entity.ReportSqlConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 报表配置
 * @Author: flyco
 * @Date:   2019-12-11
 * @Version: V1.0
 */
@Repository
public interface ReportSqlConfigMapper extends BaseMapper<ReportSqlConfig> {

    //@SqlParser(filter=true)
    @DS("master-readonly")
    List<Object> executeSql(@Param("sql") String sql);

    @DS("store")
    List<Object> executeSqlFromStore(@Param("sql") String sql);
}
